package com.didispace.domain;

import org.springframework.data.jpa.repository.JpaRepository;

//@CacheConfig(cacheNames = "users")
public interface UserRepository extends JpaRepository<User, Long> {

//    @Cacheable(value = "users", key = "#name")

    User findByName(String name);

//    @CacheEvict(value = "users", allEntries = true)
    User save(User user);

}
